package com.adc.douyu_assistant.entity;

public class DouyuMessageHeader {
    private int length_length;
    private int header_length;
    private short header_type;
    private byte header_encry;
    private byte header_remain;

    public DouyuMessageHeader(int length, short header_type) {
        this.length_length = length;
        this.header_length = length;
        this.header_type = header_type;
        byte encry = 0;
        byte remain = 0;
        this.header_encry = encry;
        this.header_remain = remain;
    }

    public int getLength_length() {
        return length_length;
    }

    public void setLength_length(int length_length) {
        this.length_length = length_length;
    }

    public int getHeader_length() {
        return header_length;
    }

    public void setHeader_length(int header_length) {
        this.header_length = header_length;
    }

    public short getHeader_type() {
        return header_type;
    }

    public void setHeader_type(short header_type) {
        this.header_type = header_type;
    }

    public byte getHeader_encry() {
        return header_encry;
    }

    public void setHeader_encry(byte header_encry) {
        this.header_encry = header_encry;
    }

    public byte getHeader_remain() {
        return header_remain;
    }

    public void setHeader_remain(byte header_remain) {
        this.header_remain = header_remain;
    }

    @Override
    public String toString() {
        return "DouyuMessageHeader{" +
                "length_length=" + length_length +
                ", header_length=" + header_length +
                ", header_type=" + header_type +
                ", header_encry=" + header_encry +
                ", header_remain=" + header_remain +
                '}';
    }
}
